package appapi.entity.auth;

import appapi.common.BaseEntity;
import appapi.common.UpdateGroup;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;

import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 模块类别
 * 
 * @author lc
 * @version 1.0
 * @date 2023-05-17 10:08:27
 */
@ApiModel
@Data
@NoArgsConstructor
@TableName("moduletype")
public class ModuletypeEntity extends BaseEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "类别ID")
	@NotNull(message = "类别ID不能为空", groups = {UpdateGroup.class})
	@TableId(type = IdType.AUTO)
	private Long moduTypeId;

	@ApiModelProperty(value = "类别名称")
	private String moduTypeName;

	@ApiModelProperty(value = "排序")
	private Integer moduTypeSort;

	@ApiModelProperty(value = "0-启用;1-未启用")
	private Integer moduTypeEnable;

	@ApiModelProperty(value = "备注")
	private String moduTypeNote;

	@ApiModelProperty(value = "")
	@DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
	private LocalDateTime updateTime;

}
